package com.xiaomage.parcelabledemo

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import kotlinx.android.synthetic.main.activity_main2.*

class Main2Activity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main2)
        val user=intent.extras.getParcelable("user") as User
        tv_content.text=user.toString()
        Log.e("传递后",user.toString())
    }
}
